using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class LoaiBangCapBUS
    {
        public static List<LoaiBangCapDTO> laydanhsachloaibangcap_bus()
        {
            List<LoaiBangCapDTO> list = new List<LoaiBangCapDTO>();
            LoaiBangCapDAO lbc = new LoaiBangCapDAO();
            list = lbc.laydanhsachbangcap_DAO();
            return list;
        }
        public static LoaiBangCapDTO  laytentheoma_BUS(int mabangcap)
        {
            LoaiBangCapDTO  bangcap = new LoaiBangCapDTO ();
            LoaiBangCapDAO  bc = new LoaiBangCapDAO ();
            bangcap  = bc.laytentheoma_DAO (mabangcap );
            return bangcap ;

        }




        public static void ThemBUS(LoaiBangCapDTO lbc)
        {
            LoaiBangCapDAO lbangcap = new LoaiBangCapDAO();
            lbangcap.ThemDAO(lbc);
        }

    }
}
